package org.no_ip.martin_springwald.google.api.extension.docs;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.gdata.client.Feed;

/**
 * DocumentsListFeed (DocsService)
 * 
 * @.dependencies gwt-gdata, GWT SDK 2.4
 */
public class DocumentsListFeed extends Feed<DocumentsListFeed, DocumentsListEntry> {

	// retrieve links and categories, extended from default functions
	/** getDocumentFeedLinks: <p>Retrieves all links contained in entry.</p> */
	public final native DocumentsListFeedLink[] getDocumentFeedLinks() /*-{ if (this.link) { return @com.google.gwt.gdata.client.impl.ArrayHelper::toArray(Lcom/google/gwt/core/client/JsArray;)(this.link); } else { return new Array(); } }-*/;
	/** getDocumentFeedCategories: <p>Retrieves all categories contained in entry.</p> */
	public final native DocumentsListFeedCategory[] getDocumentFeedCategories() /*-{ if (this.category) { return @com.google.gwt.gdata.client.impl.ArrayHelper::toArray(Lcom/google/gwt/core/client/JsArray;)(this.category); } else { return new Array(); } }-*/;

	// constructors
	/**
	 * newInstance: <p>Creates new Feed instance (Atom).</p>
	 * @return DocumentListFeed
	 */
	@SuppressWarnings("unchecked") public static native DocumentsListFeed newInstance() /*-{ return new $wnd.google.gdata.Feed(); }-*/;
	protected DocumentsListFeed() { }
	public static final native JavaScriptObject getConstructor() /*-{ return $wnd.google.gdata.Feed; }-*/;
	  
}